const useService = require('../service/userService')

const getUserList = async(ctx) => {
    let results = await useService.getUserList(1)
    ctx.body = {
        code: 200,
        message: 'success',
        data: results
    }
}
const editUser = async(ctx) => {
    console.log(ctx.request.body, 'res123123')
    let results = await userService.editUser(ctx.request.body)
    console.log(results, 'results')
}
module.exports = {
    getUserList,
    editUser
}